<template>
  <div class="home">
   <Header :isBack="false" title="某某数字藏品"/>
   <van-image  width="100%"  height="100"  src="https://img01.yzcdn.cn/vant/cat.jpeg" />
      <van-tabs v-model="active" class="tabs" sticky>
        <van-tab title="数字藏品">
            <ul class="info">
              <li @click="$router.push({name: 'fanDetail'})">
                <div class="top">
                  <van-image :src="require('../assets/img/info.png')" />
                  <div class="head">
                     <span class="tit">源自馆藏</span>
                     <span class="valueTab">
                       <span class="name">限量</span>
                       1000份
                     </span>
                  </div>
                </div>
                <div class="center">
                   <van-icon name="underway-o" /> 
                    即将开售 23:00:00
                </div>
                <div class="bottom">
                     <div class="Price">
                      <p class="name">绶带琼枝明黄折扇</p>
                      <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                    </div>
                    <div class="mon">
                      ¥ 19.90
                    </div>
                </div>
              </li>
              <li>
                <div class="top">
                  <van-image :src="require('../assets/img/info.png')" />
                  <div class="head">
                     <span class="tit">源自馆藏</span>
                     <span class="valueTab">
                       <span class="name">限量</span>
                       1000份
                     </span>
                  </div>
                </div>
                <div class="center">
                   <van-icon name="underway-o" /> 
                    即将开售 23:00:00
                </div>
                <div class="bottom">
                     <div class="Price">
                      <p class="name">绶带琼枝明黄折扇</p>
                      <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                    </div>
                    <div class="mon">
                      ¥ 19.90
                    </div>
                </div>
              </li>
              <li>
                <div class="top">
                  <van-image :src="require('../assets/img/info.png')" />
                  <div class="head">
                     <span class="tit">源自馆藏</span>
                     <span class="valueTab">
                       <span class="name">限量</span>
                       1000份
                     </span>
                  </div>
                </div>
                <div class="center">
                   <van-icon name="underway-o" /> 
                    即将开售 23:00:00
                </div>
                <div class="bottom">
                     <div class="Price">
                      <p class="name">绶带琼枝明黄折扇</p>
                      <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                    </div>
                    <div class="mon">
                      ¥ 19.90
                    </div>
                </div>
              </li>
            </ul> 
            <p class="btm">我已经到底了～</p>
        </van-tab>
        <van-tab title="发售日历">
          <div class="calendar">
              <div class="head">
                  <div class="left">近期发售计划</div>
                  <div class="right">
                    <!-- <span class="dy">订阅</span> -->
                    <span class="ydy">已订阅</span>
                    <span class="sc">收藏</span>
                  </div>
              </div>
              <ul class="commodity">
                <p class="active">01月25日 20：00</p>
                <li  <li @click="$router.push({name: 'fanDetail'})">
                  <div class="left">
                    <van-image :src="require('../assets/img/info.png')" />
                  </div>
                  <div class="right">
                    <p class="label ddd">绶带琼枝明黄折扇</p>
                    <p class="Price">¥ 19.90</p>
                    <p class="num">
                      <span class="valueTab">
                       <span class="name">限量</span>
                       1000份
                     </span>
                    </p>
                    <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                  </div>
                </li>
                <li>
                  <div class="left">
                    <van-image :src="require('../assets/img/info.png')" />
                  </div>
                  <div class="right">
                     <p class="label ddd">绶带琼枝明黄折扇</p>
                    <p class="Price">¥ 19.90</p>
                    <p class="num">
                      <span class="valueTab">
                      <span class="name">限量</span>
                      1000份
                    </span>
                    </p>
                    <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                  </div>
                </li>
                  <p>01月25日 22：00</p>
                <li>
                  <div class="left">
                    <van-image :src="require('../assets/img/info.png')" />
                  </div>
                  <div class="right">
                     <p class="label ddd">绶带琼枝明黄折扇</p>
                    <p class="Price">¥ 19.90</p>
                    <p class="num">
                      <span class="valueTab">
                       <span class="name">限量</span>
                       1000份
                     </span>
                    </p>
                    <p class="comp ddd">元宇宙国际拍卖有限公司</p>
                  </div>
                </li>
              </ul>
          </div>
           <p class="btm">我已经到底了～</p>
        </van-tab>
        <van-tab title="内容精选">
            <ul class="info info2">
              <li @click="fanListClick">
                <div class="top">
                  <van-image :src="require('../assets/img/info.png')" />
                </div>
                <div class="bottom">
                    <p class="title">折扇合集</p>
                    <p class="desc ddd2">2月15日至2月25日，每日抽300份限量发售，前十名抢购的用户提供限量标签。2月15日至2月25日，每日抽300份限量限量限量限量</p>
                </div>
              </li>
              <li @click="fanListClick">
                <div class="top">
                  <van-image :src="require('../assets/img/info.png')" />
                </div>
                <div class="bottom">
                    <p class="title">折扇合集</p>
                    <p class="desc ddd2">2月15日至2月25日，每日抽300份限量发售，前十名抢购的用户提供限量标签。2月15日至2月25日，每日抽300份限量限量限量限量</p>
                </div>
              </li>
            </ul> 
            <p class="btm">我已经到底了～</p>
        </van-tab>
      </van-tabs>

  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
  name: 'home',
  computed: { ...mapGetters({ pageData: 'pageData'}) },
  data () {
    return {
      activeName: 'a',
      active: 0,
      type: 0,
    }
  },
  methods: {
     onClick(name, title) {
      Toast(name + '已被禁用');
    },
     fanListClick() {
      this.$router.push({name: 'fanList'})
    },
    
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scope>
.home {
  width: 100%;
  padding: 0 8px;
  padding-top: 40px;
  padding-bottom: 60px;
  box-sizing: border-box;
  .van-tabs__content {
    padding-bottom: 16px;
  }
  .xtabs {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #999999;
    font-size: 14px;
    font-family: PingFangSC-Semibold, PingFang SC;
    line-height: 46px;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.04);
    div {
      height: 40px;
      line-height: 40px;
      float: left;
      position: relative;
      width: 70px;
    }
    div.active {
     font-weight: 500;
     color: #333333;
    }
    div.active::after {
      content: '';
      display: block;
      position: absolute;
      bottom: 2px;
      width: 56px;
      left: 6px;
      height: 4px;
      background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
      box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.04);
      border-radius: 4px;
    }
  }
  .info {
    width: 100%;
    height: 100%;
    li{
      display: inline-block;
      width: 100%;
      height: 310px;
      box-sizing: border-box;
      border-radius: 6px;
      overflow: hidden;
      background: #FFFFFF;
      padding: 8px;
      margin-bottom: 10px;
      box-sizing: border-box;
    }
    .valueTab {
      margin-left: 4px;
    }
    .top {
      width: 100%;
      position: relative;
      border-radius: 6px;
      overflow: hidden;
      .van-image {
        width: 100%;
        height: 210px;
      }
      .head{
        position: absolute;
        top: 6px;
        left: 6px;
        span{
          display: inline-block;
          padding: 0 8px;
          box-sizing: border-box;
          color: #FFFFFF;
          line-height: 17.5px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
        }
        .tit {
          background-color: #958CE7;
          border-radius: 4px;
          font-size: 11px;
        }

      }
    }
    .center {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #999999;
        margin-top: 4px;
        height: 24px;
        line-height: 24px;
        text-align: left;
    }
    .bottom {
      height: 54px;
      width: 100%;
      .Price {
        height: 100%;
        float: left;
        .name {
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 1;
          padding: 8px 0;
        }
        .comp {
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
          line-height: 1;
          padding: 4px 0;
        }
      }
      .mon {
        height: 100%;
        margin-right: 6px;
        font-size: 24px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #6B00F0;
        padding-top: 14px;
        height: 1;
        background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        float: right;
      }
    }
  }
  .info2 {
     li {
       height: 235px;
       .top {
        width: 100%;
        position: relative;
        border-radius: 6px;
        overflow: hidden;
        .van-image {
          width: 100%;
          height: 140px;
        }
      }
      .title {
        font-size: 15px;
        padding: 9px 0;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 1;
      }
      .desc {
        height: 40px;
        font-size: 11.5px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #666666;
        line-height: 20px;
        overflow: hidden;
      }
     }
  }
  .calendar {
    width: 100%;
    .head {
      width: 100%;
      height: 42px;
      .left {
        float: left;
        font-size: 15px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 42px;
        background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }
      .right {
        float: right;
        .dy,.ydy {
          padding: 0 12px;;
          font-size: 14px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 42px;
          display: inline-block;
          vertical-align: middle;

        }
        .ydy {
          color: #999999;
        }
        .sc {
          display: inline-block;
          vertical-align: middle;
          font-size: 13px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #FFFFFF;
          line-height: 1;
          padding: 5px 12px;
          background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
          border-radius: 8px;
        }
      }
    }
    .commodity {
      width: 100%;
      padding-top: 8px;
      &>p {
        position: relative;
        font-size: 16px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #333333;
        line-height: 1;
        padding-left: 10px;
        padding-bottom: 10px;
      }
      &>p.active::before{
        position: absolute;
        left: 0;
        top: 1px;
        content: '';
        display: block;
        width: 3px;
        background-color: #fff;
        height: 14px;
        background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
        border-radius: 2px;
      }
      li {
        display: block;
        width: 100%;
        height: 108px;
        background: #FFFFFF;
        box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        padding: 8px;
        box-sizing: border-box;
        margin-bottom: 10px;
        .left {
          float: left;
          width: 92px;
          height: 100%;
        }
        .van-image {
          width: 100%;
          height: 100%;
        }
        .right {
          float: left;
          width: calc(100% - 110px);
          height: 100%;
          padding-left: 12px;
          .label{
            font-size: 15px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            line-height: 1;
            padding: 5px 0;
          }
          .Price{
            font-size: 16px;
            padding: 4px 0;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #6B00F0;
            line-height: 1;
            background: linear-gradient(270deg, #E091A9 0%, #9A7FCF 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
          }
           .num {
             padding-top: 2px;
             height: 20px;
           }
          .comp{
              font-size: 12px;
              padding: 6px 0;
              font-family: PingFangSC-Regular, PingFang SC;
              font-weight: 400;
              color: #666666;
              line-height: 1;
          }
        }
      }
    }
  }
}
</style>
